from excel.excelwr import excelwr
import json
import os



if __name__ == '__main__':
    file = r'E:\my\backtrader-binance\excel\json'
    excelwr = excelwr()
    for root, dirs, files in os.walk(file):
        for file in files:
            path = os.path.join(root, file)
            excelwr.maindef(json, path, (os.path.basename(path)).split(".")[0]+".xls")


    #
    #